From f664f68cdca0efd1804198096c50c122156bdc64 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Sun, 24 Nov 2013 03:11:28 +0000 Subject: [PATCH] Fix an1 for NEW_STRINGS. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4655 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/an1.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gpsbabel/an1.cc b/gpsbabel/an1.cc index e32c05893..2e148fa8f 100644 --- a/gpsbabel/an1.cc +++ b/gpsbabel/an1.cc @@ -715,7 +715,9 @@ static void Read_AN1_Waypoints(gbfile* f) } else { int u = wpt_tmp->description.indexOf("{URL="); QString us = wpt_tmp->description.mid(u); - wpt_tmp->AddUrlLink(us); + if (!us.isEmpty()) { + wpt_tmp->AddUrlLink(us); + } } #else } else if (NULL != (url=strstr(wpt_tmp->description, "{URL="))) { -- 2.30.2